Shell

abstract class Shell(escapeWindows: Boolean)

Represents a shell used to run commands.

Constructors

Shell
Link copied to clipboard
fun Shell(escapeWindows: Boolean = true)

Types

bash
Link copied to clipboard
object bash : ConstantShell
cmd
Link copied to clipboard
object cmd : ConstantShell
powershell
Link copied to clipboard
object powershell : ConstantShell
Note that output redirects with will be written in utf16-le with a BOM

Functions

args
Link copied to clipboard
abstract fun args(command: String): Array<String>
shellCommand
Link copied to clipboard
abstract fun shellCommand(command: String): String

Properties

escapeWindows
Link copied to clipboard
val escapeWindows: Boolean = true

Inheritors

ConstantShell
Link copied to clipboard

Sources

js source
Link copied to clipboard